package game.web.dao.factory;

import game.web.dao.MyBankDAO;
import game.web.dao.impl.MyBankDAOImpl;
import projectx.core.base.ProjectXSystemException;

public class MyBankFactory {

	private static MyBankFactory factory = new MyBankFactory();

	public static void setFactory(MyBankFactory factory) {
		MyBankFactory.factory = factory;
	}

	public static MyBankFactory getFactory() {
		return factory;
	}

	public MyBankDAO getMyBankDAO() throws ProjectXSystemException {
		return new MyBankDAOImpl();
	}
}
